import { uploadType,getAreaObj } from '@/utils/util'
import {configToSearch,toSearchHandle} from '@/views/datacenter/business/utils/index'

const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{ label: '所属区域', prop: 'belongAreaName' },
		// { label: '统一社会信用代码', prop: 'creditCode' },
		{ label: '机构名称', prop: 'organizationName' },
		{ label: '联系人', prop: 'deputyUserName' },
		{ label: '联系方式', prop: 'deputyUserPhone' ,plusXing: '5,2'},
		// { label: '申请人数', prop: 'applicantPhone'},
		{
			label: '机构评定等级',
			type: 'remoteSelect',
			prop: 'organizationLevel',
			propName:"organizationLevelLabel",
			code:"ORG_LEVEL",
			api:"getDictItemList",
		},
		{ label: '申请金额', prop: 'applyAmount' },
		{ label: '申请时间', prop: 'applyDate'},
		{ label: '发放金额', prop: 'grantAmount' },
		{ label: '发放时间', prop: 'grantDate'},
		{
			label: '是否可信',
			prop: 'isBelievable',
			custome: 'tag',
			dicData: [
				{ label: '否', value: 0,type:'danger' },
				{ label: '是', value: 1,type:'success' },
			],
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}
export const detailConfig: any = {
	label: '机构运营补贴详情',
	prop: 'base1',
	inline: false,
	showBtn: false,
	labelPosition: 'left',
	column: [
		// 每月老人花名册
		{
			type: 'DividerHtml',
			modelValue: '每月老人花名册',
			span: 24,
		},
		{
			label: '每月老人花名册',
			type: 'dynamic',
			prop: 'rosterList',
			span: 24,
			column: [
				{
					label: '姓名',
					prop: 'oldmanName',
					type: 'text',
					span: 8,
				},
				{
					label: '身份证号',
					prop: 'idCard',
					type: 'text',
					span: 8,
				},
				{
					label: '所属区域',
					prop: 'areas_name',
					type: 'text',
					span: 8,
				},
				{
					label: '入住协议',
					prop: 'checkinAgreementImgs',
					type: 'upload',
					labelPosition: 'top',
					showFileList: false,
					limit: 9,
					multiple: true,
					span: 8,
				},
				{
					label: '老人身份证',
					prop: 'idCardImgs',
					type: 'upload',
					labelPosition: 'top',
					showFileList: false,
					limit: 9,
					multiple: true,
					span: 8,
				},
				{
					label: '户口簿',
					prop: 'householdImgs',
					type: 'upload',
					labelPosition: 'top',
					showFileList: false,
					limit: 9,
					multiple: true,
					span: 8,
				},
				{
					label: '老人照片',
					prop: 'oldmanPhoto',
					type: 'upload',
					labelPosition: 'top',
					showFileList: false,
					limit: 9,
					multiple: true,
					span: 8,
				},
				{
					label: '健康检查资料',
					prop: 'healthExamineImgs',
					type: 'upload',
					labelPosition: 'top',
					showFileList: false,
					limit: 9,
					multiple: true,
					span: 8,
				},
				{
					label: '监护人姓名',
					prop: 'guardianName',
					type: 'text',
					span: 8,
				},
				{
					label: '监护人联系方式',
					prop: 'guardianPhone',
					type: 'tel',
					maxLength: '11',
					span: 8,
				},
				{
					label: '监护人和老人关系',
					prop: 'guardianRelation',
					propName:'guardianRelationLabel',
					api:'getDictItemList',
					code:'ELDERLY_RELATIONSHIP',
					type: 'remoteSelect',
					span: 8,
				},
			],
		},

		// 机构申请信息
		{
			type: 'DividerHtml',
			modelValue: '机构申请信息',
			span: 24,
		},
		{
			label: '机构名称',
			prop: 'organizationName',
			type: 'text',
			span: 8,
		},
		{
			label: '机构地址',
			prop: 'organizationAddress',
			type: 'text',
			span: 8,
		},
		{
			label: '机构等级',
			prop: 'organizationLevel',
			propName:'organizationLevelLabel',
			type: 'remoteSelect',
			code:"ORG_LEVEL",
			api:"getDictItemList",
			span: 8,
		},
		{
			label: '法定代表人姓名',
			prop: 'deputyUserName',
			type: 'text',
			span: 8,
		},
		{
			label: '法定代表人联系电话',
			prop: 'deputyUserPhone',
			type: 'tel',
			span: 8,
		},
		{
			label: '开户银行',
			prop: 'bankName',
			type: 'text',
			span: 8,
		},
		{
			label: '银行账号',
			prop: 'bankAccount',
			type: 'text',
			span: 8,
		},
		{
			label: '核定床位数',
			prop: 'realBedNum',
			type: 'input',
			append:'张',
			span: 8,
		},
		{
			label: '营业执照(民非)证号',
			prop: 'orgLicenseImgs',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 9,
			span: 8,
		},
		{
			label: '机构设置证号(备案)',
			prop: 'organizationFilingImgs',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 9,
			span: 8,
		},
		{
			label: '建筑工程消防验收合格意见书',
			prop: 'passAdviceImgs',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 9,
			span: 8,
		},
		{
			label: '食品经营许可证',
			prop: 'foodPermitImgs',
			type: 'upload',
			span: 8,
		},
		{
			label: '是否民政部养老机构服务质量大检查基础指标全部达标',
			prop: 'baseQualityStandard',
			type:'select',
			dicData: [
				{ label: '否', value: 0,type:'danger' },
				{ label: '是', value: 1,type:'success' },
			],
			span: 8,
		},
		{
			label: '老人入住记录',
			prop: 'checkinRecord',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 8,
		},
		{
			label: '入住老人满意率',
			prop: 'checkinSatisfyRate',
			type: 'input',
			span: 8,
		},
		{
			label: '运营补贴申请表',
			prop: 'applyMaterial',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 8,
		},
		{
			label: '运营补贴申请所属时间',
			prop: 'belongDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '运营补贴自查报告',
			prop: 'selfCheckReport',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 8,
		},
		{
			label: '运营补贴核算人员统计表',
			prop: 'checkStatistic',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 8,
		},
		{
			label: '运营补贴申请金额',
			prop: 'applyAmount',
			type: 'text',
			append:'元',
			span: 8,
		},
		{
			label: '运营补贴申请时间',
			prop: 'applyDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '运营补贴审批结果',
			prop: 'approvalResult',
			type: 'select',
			dicData: [
				{ label: '通过', value: 0 },
				{ label: '驳回', value: 1 },
			],
			span: 8,
		},
		{
			label: '运营补贴审批时间',
			prop: 'approvalTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '运营补贴审批人',
			prop: 'approvalUserName',
			type: 'text',
			span: 8,
		},
		{
			label: '运营补贴发放金额',
			prop: 'grantAmount',
			type: 'text',
			append:'元',
			span: 8,
		},
		{
			label: '运营补贴发放时间',
			prop: 'grantDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
	],
}
let moreSet:any = {
	column:[
		{
			label:'是否按照协议提供服务',
			prop:'agreementServiceFlag',
			propName:'agreementServiceFlagLabel',
			dicData:[
				{label:'否',value:'0'},
				{label:'是',value:'1'}
			],
			type:'select'
		},
		{
			label:'是否按照协议提供服务备注',
			prop:'agreementServiceNote',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
		},
		{
			label:'运营补贴申请金额',
			prop:'applyAmount',
			type:'text',
			append:'元'
		},
		{
			label:"运营补贴申请时间",
			prop:'applyDate',
			type:'date',
			format:'YYYY年MM月DD日',
			valueFormat:'YYYY-MM-DD'
		},
		{
			label:'申请季度',
			prop:'applyQuarter',
			propName:'applyQuarterLabel',
			type:'remoteSelect',
			code:'QUARTER',
			api:'getDictItemList'
		},
		{
			label:"申请年份",
			prop:'applyYear',
			type:"input",
		},
		{
			label: '运营补贴审批结果',
			prop: 'approvalResult',
			type: 'select',
			dicData: [
				{ label: '通过', value: 0 },
				{ label: '驳回', value: 1 },
			],
		},
		{
			label:'运营补贴审批结果驳回备注',
			prop:'approvalNote',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
		},
		{
			label:'运营补贴审批时间',
			prop:'approvalTime',
			type:'date',
			format:'YYYY年MM月DD日',
			valueFormat:'YYYY-MM-DD'
		},
		{
			label:'运营补贴审批人',
			prop:'approvalUserName',
			type: 'text',
			maxlength: '20',
			showWordLimit: true,
		},
		{
			label:'区民政部门意见',
			prop:'areaCivilAffairNote',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
		},
		{
			label:'银行账号',
			prop:'bankAccount',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
		},
		{
			label:'开户银行',
			prop:'bankName',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
		},
		{
			label:'是否民政部养老机构服务质量大检查基础指标全部达标',
			prop:'baseQualityStandard',
			propName:'baseQualityStandardLabel',
			type:'select',
			dicData:[
				{label:'否',value:'0'},
				{label:'是',value:'1'}
			]
		},
		{
			label:'所属区划',
			prop:'bolongArea',
			type:'AplidAreaSelect'
		},
		{
			label:'持证管理人员数',
			isNum:true,
			append:"人",
			prop:"certManagerNum"
		},
		{
			label:'持证员工人数',
			prop:'certStaffNum',
			append:'人',
			isNum:true
		},
		{
			label:'入住老人数',
			prop:'checkinOldmanNum',
			append:"人",
			idNum:true
		},{
			label:'入住老人满意率',
			prop:'checkinSatisfyRate',
			type:"text",
			append:'百分比'
		},
		{
			label:"区民政审核时间",
			prop:'civilApprovalDate',
			type:'date',
			format:'YYYY年MM月DD日',
			valueFormat:'YYYY-MM-DD'
		},
		{
			label:"老人对机构的综合评价",
			prop:'comprehensiveEvaluation',
			propName:'comprehensiveEvaluationLabel',
			dicData:[
				{label:'满意',value:'1'},
				{label:'基本满意',value:'2'},
				{label:'不满意',value:'3'}
			],
			type:'select'
		},
		{
			label:'机构ID',
			prop:'creditCode',
			type: 'text',
			maxlength: '18',
			showWordLimit: true,
		},
		{
			label:'法定代表人姓名',
			prop:'deputyUserName',
			type: 'text',
			maxlength: '20',
			showWordLimit: true,
		},
		{
			label:'法定代表人联系电话',
			prop:'deputyUserPhone',
			type: 'text',
			maxlength: '11',
			showWordLimit: true,
		},
		{
			label:'食品经营许可证',
			prop:'foodPermitImgs',
			type:'upload'
		},
		{
			label:'政府供养人数',
			prop:'govSupportNum',
			append:'人',
			type:'input'
		},
		{
			label:'运营补贴发放金额',
			prop:'grantAmount',
			append:'元',
			type:"text"
		},
		{
			label:'运营补贴发放时间',
			prop:'grantDate',
			type:'date',
			format:'YYYY年MM月DD日',
			valueFormat:'YYYY-MM-DD'
		},
		{
			label:'是否侵害老人合法权益',
			prop:"infringementFlag",
			propName:'infringementFlagLabel',
			type:'select',
			dicData:[
				{label:'否',value:'0'},
				{label:'是',value:'1'}
			]
		},
		{
			label:"未满60周岁人数",
			prop:'lessSixtyNum',
			append:'人',
			type:'input'
		},
		{
			label:'管理人员数量',
			prop:"managerNum",
			append:'人',
			type:'input'
		},
		{
			label:'民办非企业单位登记证书或工商营业执照',
			prop:'orgLicenseImgs',
			type:'upload'
		},
		{
			label:'机构地址',
			prop:'organizationAddress',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
		},
		{
			label:'机构设置证号',
			prop:"organizationFiling",
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
		},
		{
			label:'机构等级',
			prop:"organizationLevel",
			propName:"organizationLevelLabel",
			api:'getDictItemList',
			code:'ORG_LEVEL',
			type:"remoteSelect"
		},
		{
			label:'营业执照(民非)证号',
			prop:'organizationLicense',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
		},
		{
			label:"机构名称",
			prop:'organizationName',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
		},
		{
			label:"养老机构设置的相关证件",
			prop:'otherPermitImgs',
			type:'upload'
		},
		{
			label:'其他事项',
			prop:'otherThings',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
		},
		{
			label:"参与人数",
			prop:'partakeNum',
			type:'text',
			append:'人'
		},
		{
			label:"参与比例",
			prop:'partakeRate',
			type:'text',
			append:'百分比'
		},
		{
			label:"建筑工程消防验收合格意见书",
			prop:'passAdviceImgs',
			type:'upload'
		},
		{
			label:'邮政编码',
			prop:'postalCode',
			type: 'text',
			maxlength: '6',
			showWordLimit: true,
		},
		{
			label:'物价备案手续',
			prop:"pricesFilingImgs",
			type:'upload'
		},
		{
			label:"核定床位数",
			prop:'realBedNum',
			append:'张',
			type:'input'
		},
		{
			label:"自查时间",
			prop:'selfCheckDate',
			type:'date',
			format:'YYYY年MM月DD日',
			valueFormat:'YYYY-MM-DD'
		},
		{
			label:"运营补贴自查报告",
			prop:'selfCheckReport',
			type:"upload"
		},
		{
			label:'自查结论',
			prop:'selfCheckResult',
			propName:"selfCheckResultLabel",
			type:'remoteSelect',
			// dicData:[
			// 	{label:"非常满意",value:"1"},
			// 	{label:"基本满意",value:"2"},
			// 	{label:"不满意",value:"3"},
			// ]
			// type:"remoteSelect",
			api:"getDictItemList",
			code:"EVALUATION"
		},
		{
			label:'自查方式',
			prop:'selfCheckWay',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
		},
		{
			label:"补贴唯一值",
			prop:'soleValue',
			type:"input"
		},
		{
			label:"员工总数",
			prop:"staffNum",
			append:"人",
			type:"text"
		},
		{
			label:'不符合条件人数',
			prop:"unconformityNum",
			append:"人",
			type:"text"
		},
		{
			label:"是否存在虚假广告宣传",
			prop:'unrealPublicityFlag',
			propName:'unrealPublicityFlagLabel',
			type:"select",
			dicData:[
				{label:'否',value:'0'},
				{label:'是',value:'1'}
			]
		},
		{
			label:"是否存在虚假广告宣传备注",
			prop:'unrealPublicityNote',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
		}
	]
}
const moreSearchConfig:any = {
	inline: true,
	showBtn: false,
	labelPosition: 'left',
	column:[
		...configToSearch(moreSet.column)
	]
}
const importConfig = {
	tabSteps: [
		{
			label: '下载模板',
			download: '下载模板',
			active: 1,
			rules: [
				{
					label: '下载最新导入模板。共2个：',
					children: [
						{
							label: '《机构运营补贴信息表》',
							link: true,
							url: 'dpOrgOperateSubsidy_downloadTemplate',
						},
						{
							label: '《机构运营花名册补贴信息表》',
							link: true,
							url: 'dpOrgOperateSubsidyRoster_downloadTemplate',
						},
						{
							label: '《机构运营补贴-申请内容（多个）信息表》',
							link: true,
							url: 'dpOrgOperateApply_downloadTemplate',
						},
						{
							label: '《机构运营补贴-自查情况存在的问题》',
							link: true,
							url: 'dpOrgOperateSelfQuestion_downloadTemplate',
						},
						{
							label: '《机构运营补贴-自查情况-调查人信息信息表》',
							link: true,
							url: 'dpOrgOperateSelfInvestigator_downloadTemplate',
						},
						{
							label: '《机构运营补贴-员工信息信息表》',
							link: true,
							url: 'dpOrgOperateStaff_downloadTemplate',
						},
					],
				},
			],
		},
		{
			label: '导入《机构运营补贴信息表》',
			description: '',
			uploadTip: '机构运营补贴信息表',
			active: 2,
			url: 'dpOrgOperateSubsidy_import',
			code: 3009,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的机构运营补贴信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
		{
			label: '导入《机构运营补贴-花名册信息表》',
			description: '',
			uploadTip: '机构运营补贴-花名册信息表',
			active: 3,
			url: 'dpOrgOperateSubsidyRoster_import',
			code: 3010,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的机构运营补贴-花名册信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
		{
			label: '导入《机构运营补贴-申请内容（多个）信息表》',
			description: '',
			uploadTip: '机构运营补贴-申请内容（多个）信息表',
			active: 4,
			url: 'dpOrgOperateApply_import',
			code: 3104,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的机构运营补贴-申请内容（多个）信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
		{
			label: '导入《机构运营补贴-自查情况存在的问题信息表》',
			description: '',
			uploadTip: '机构运营补贴-自查情况存在的问题信息表',
			active: 5,
			url: 'dpOrgOperateSelfQuestion_import',
			code: 3106,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的机构运营补贴-自查情况存在的问题信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
		{
			label: '导入《机构运营补贴-自查情况-调查人信息信息表》',
			description: '',
			uploadTip: '机构运营补贴-自查情况-调查人信息信息表',
			active: 6,
			url: 'dpOrgOperateSelfInvestigator_import',
			code: 3105,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的机构运营补贴-自查情况-调查人信息信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
		{
			label: '导入《机构运营补贴-员工信息信息表》',
			description: '',
			uploadTip: '机构运营补贴-员工信息信息表',
			active: 7,
			url: 'dpOrgOperateStaff_import',
			code: 3107,
			rules: [
				{
					label: '导入规则说明:',
					children: [
						{
							label: '(1)导入模式为“覆盖导入”，待导入的机构运营补贴-员工信息会覆盖平台已存在的',
						},
					],
				},
			],
		},
	],
}
export const baseConfig: any = {
	pageName: '机构运营补贴',
	dictcodes: ['ORG_LEVEL','ELDERLY_RELATIONSHIP','RESULT','QUARTER','EVALUATION'],
	rowKey: 'id',
	tipLabel: 'organizationName',
	exportMqTopic: [
		{
			topic: '/ning/export/dpOrgOperateSubsidyPO/',
			label: '基础数据',
			code: 3009,
			po: 'dpOrgOperateSubsidyPO',
		},
		{
			topic: '/ning/export/dpOrgOperateSubsidyRosterPO/',
			label: '机构运营补贴-花名册',
			code: 3010,
			po: 'dpOrgOperateSubsidyRosterPO',
		},
		{
			topic: '/ning/export/dpOrgOperateApplyPO/',
			label: '机构运营补贴-申请内容（多个）',
			code: 3104,
			po: 'dpOrgOperateApplyPO',
		},
		{
			topic: '/ning/export/dpOrgOperateSelfQuestionPO/',
			label: '机构运营补贴-自查情况存在的问题',
			code: 3106,
			po: 'dpOrgOperateSelfQuestionPO',
		},
		{
			topic: '/ning/export/dpOrgOperateSelfInvestigatorPO/',
			label: '机构运营补贴-自查情况-调查人信息',
			code: 3105,
			po: 'dpOrgOperateSelfInvestigatorPO',
		},
		{
			topic: '/ning/export/dpOrgOperateStaffPO/',
			label: '机构运营补贴-员工信息',
			code: 3107,
			po: 'dpOrgOperateStaffPO',
		},
	],
	api: {
		moreSearch:'view_dpOrgOperateSubsidy_search',
		index: 'dpOrgOperateSubsidy_page',
		delete: 'dpOrgOperateSubsidy_del',
		export: 'dpOrgOperateSubsidy_exportAll',
		import: 'dpOrgOperateSubsidy_import',
	},
	paramsObj: {
		code: 3009,
	},
	auth: {
		index: 'view_dpOrgOperateSubsidy_page',
		mulitSet: 'mulitSet',
		delete: 'view_dpOrgOperateSubsidy_del',
		// export: 'view_dpOrgOperateSubsidy_exportAll',
		// import: 'view_dpOrgOperateSubsidy_import',
	},
	menuBtn: [
		{
			icon: 'editor',
			label: '查看详情',
			type: 'primary',
			operate: 'Detail',
			auth: '',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '65%',
	},
	moreSearchConfig,
	searchConfig: {
		inline: true,
		showBtn: true,
		labelPosition: 'left',
		column: [
			{
				label: '信用代码',
				prop: 'creditCode',
				type: 'input',
				span: 6,
			},
			{
				label: '机构名称',
				prop: 'organizationName',
				type: 'input',
				span: 6,
			},
			{
				label: '联系方式',
				prop: 'deputyUserPhone',
				type: 'input',
				span: 6,
			},
			{
				label: '所属地区',
				propName: 'areas_name',
				type: 'AplidAreaSelect',
				span: 6,
			},
			{
				label: '评定等级',
				prop: 'organizationLevel',
				type: 'remoteSelect',
				api: 'getDictItemList',
				code: 'ORG_LEVEL',
				multiple: false,
				filterKey: 'value',
				span: 6,
			},
			{
				label: '申请年月',
				prop: 'applyDateBetween',
				type: 'daterange',
				format: 'YYYY年MM月DD日',
				valueFormat: 'YYYY-MM-DD',
				span: 12,
			},
		],
	},
	// detailConfig,
	tableConfig,
	importConfig,
	beforeOnLoadFormate: async (params) => {
		params = toSearchHandle(moreSearchConfig,{},params)

		// if(params.applyDateBetween){
		// 	params.applyDateBetween = params.applyDateBetween.join(',')
		// }else{
		// 	params.applyDateBetween = undefined
		// }
		console.log('参数一', params)
		let areasObj = getAreaObj(params.areas_name, 'belong')
		if(params.grantDateBetween){
			params.grantDateBetween = params.grantDateBetween.split(',')
		}
		return Promise.resolve({
			...params,
			...areasObj,
			areas_name: undefined,
		})
	},
	onLoadFormate: async (arr) => {
		console.log('参数二', arr)
		const tableData = arr.map((item) => {
			const areas_name = getAreaObj(item, 'belong')
			return {
				...item,
				areas_name,
			}
		})
		return Promise.resolve(Object.freeze(tableData))
	},
}
